package com.quectel.core.module.ai.dto.mongo;

import com.quectel.core.module.device.dto.DeviceCategoryDto;
import com.quectel.core.module.device.dto.DeviceTypeDto;
import com.quectel.core.module.village.dto.VillageDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 视频事件记录表
 *
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2021-11-22 11:47:45
 */
@Data
@Schema
public class MongoAiEventRecordDto implements Serializable {

    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 小区id
     */
    @Schema(description = "小区id")
    private Long villageId;

    /**
     * 楼栋id
     */
    @Schema(description = "楼栋id")
    private Long buildingId;

    /**
     * 种类id
     */
    @Schema(description = "种类id")
    private Long deviceCategoryId;

    /**
     * 类型
     */
    @Schema(description = "类型")
    private Long deviceTypeId;

    /**
     * 设备id
     */
    @Schema(description = "设备id")
    private Long deviceId;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String deviceName;

    /**
     * 事件类型 1区域入侵 2车牌抓拍 3人脸抓拍
     */
    @Schema(description = "事件类型 1区域入侵 2车牌抓拍 3人脸抓拍")
    private Byte eventType;

    /**
     * 抓拍照片
     */
    @Schema(description = "抓拍照片")
    private String snapImages;

    /**
     * 抓拍录像
     */
    @Schema(description = "抓拍录像")
    private String snapVideoes;

    /**
     * 事件发生时间
     */
    @Schema(description = "事件发生时间")
    private Date eventTime;

    /**
     * 事件接收时间
     */
    @Schema(description = "事件接收时间")
    private Date recordTime;

    /**
     * 纬度
     */
    @Schema(description = "纬度")
    private Double latitude;

    /**
     * 经度
     */
    @Schema(description = "经度")
    private Double longitude;

    /************非数据库字段 start ************/
    @Schema(description = "设备类型")
    private DeviceCategoryDto deviceCategoryDto;

    @Schema(description = "小区信息")
    private VillageDto villageDto;

    @Schema(description = "设备种类")
    private DeviceTypeDto deviceTypeDto;
    /************非数据库字段 end **************/
}
